package com.xxl.job.executor.dao;


import com.xxl.job.executor.model.QxWeather;
import org.apache.ibatis.annotations.Param;

public interface QxWeatherMapper {
    int deleteByPrimaryKey(String id);

    int insert(QxWeather record);

    int insertSelective(QxWeather record);

    QxWeather selectByPrimaryKey(String id);

   // 查询过去24小时天气数据
    QxWeather selectPast24hour(@Param("wdate") String wdate, @Param("wtime") String wtime
            , @Param("wkind") String wKind, @Param("dist") String dist);

    int updateByPrimaryKeySelective(QxWeather record);

    int updateByPrimaryKey(QxWeather record);

   // 查询未来7天天气数据
    QxWeather select7Days(@Param("wdate") String wdate, @Param("wkind") String wKind, @Param("dist") String dist);

    // 查询当日天气数据(包含相对湿度)
    QxWeather selectToday(@Param("wdate") String wdate, @Param("wkind") String wKind, @Param("dist") String dist);
}
